package com.zyl.Mapper;

import com.zyl.dto.UserCommentDTO;
import com.zyl.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: Zyl
 * @Param:
 * @return:
 * @Description:
 */
@Mapper
@Repository
public interface UserMapper {
    User queryUserByUsername(String username);
    List<User> queryAllUser(Integer page);
    void addUser(User user);
    void updateUser(User user);
    void deleteUser(Integer id);
    User queryUserById(Integer id);
    void updatePasswordById(User user);
    public Integer findUsername(String username);
    public Integer findEmail(String email);
    void updateUserPictureById(User user);
    String findUserPictureById(Integer id);
    public List<UserCommentDTO> UserCommentByResponse(Integer respondentId);
    public Integer UserCommentCount(Integer respondentId);
    public void updateIsRead(Integer id);
    public Integer isReadCount(Integer respondentId);
}
